<?php
class HomeController extends MController {
    public function indexAction(){

        $categories = Category::find('all');
        $forums = Forum::find('all');

        $this->render('index', array( 'categories' => $categories,
                                      'forums' => $forums));
    }
}
?>